STEP 3: Now let's set the angle that the sprite will turn. We'll use a variable that we can easily change later on!

Using a variable allows us to make big changes to what we see with only a small change in the code!

  • Click LOGIC, then go to . Drag Integer Variable into your code.
  • Change the name of the variable from my_var to angle.
  • Change the value from 25 to 145.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)